/**
 * 职称
 */
const { v4: uuidv4 } = require('uuid');

module.exports = {

  up: async queryInterface => {
    const names = ['主任', '经理', '其他'];
    const titleList = names.map((item, index) => ({
      id: index + 1,
      uuid: uuidv4(),
      name: item,
      createdAt: new Date(),
      updatedAt: new Date(),
    }));

    await queryInterface.bulkInsert('title', titleList, {});
  },

  down: async queryInterface => {

    await queryInterface.bulkDelete('title', null, {});

  }
};
